﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<#include "/pages/include/include.ftl" />
<@h.css href="/css/uc.css"/>
<@h.js src="/javascripts/public/area.js"/>
<#include "/pages/include/setlayout.ftl" />
<script type="text/javascript">
	var area=new area();
	
	$(function(){
			//all select
			$('.allSelect').click(function(){
				area.selectAll($(this));
			});
			$('#setSugest').click(function(){
				area.setSugest();
			});
			$("#txtDate").ligerDateEditor({ format: "yyyy年MM月dd日" });
	});
</script>
<style>
.l-text-date{
	float:left;
}
</style>
</head>

<body>
<#assign menuId="area">
<div id="layout1" class="wrapper">
	
	<#include "/pages/person/myfile/file_menu.ftl" />
	
	<div position="center" title="首页板块管理">
		<div class="action-div">
			<a id="setSugest" class="minibutton" style="width:90px;"><span>设置推荐日期</span></a><input type="text" id="txtDate" readonly />
		</div>
		<div  class="sList" >
		<table width="100%" class="sTable" cellpadding="0" cellspacing="0" border="0" >
			<tr>
				<td class="sTh checkbox" ><input class="inputCheckbox allSelect" type="checkbox" id="" name="" /></td>
				<th class="sTh">标题</th>
				<th class="sTh">分类</th>
				<th class="sTh">浏览量</th>
				<th class="sTh">发表人</th>
				<th class="sTh">发表时间</th>
				<th class="sTh">推荐日期</th>
				<!--<th class="sTh">操作</th>-->
			</tr>
		<#if mores?exists>
		<#list mores.result as a>
			<tr class="<#if a_index%2==0>sRow2<#else>sRow1</#if>">
				<td class="sCell" ><input class="inputCheckbox selectItem" type="checkbox" value="${a.id?if_exists}" /></td>
				<td class="sCell">
				<a class="f14" href="${contextPath}/news/news-showNews.action?newsId=${a.id?if_exists}" title="${a.title?if_exists} ">
				${a.title?if_exists} </a></td>
				<td class="sCell">${a.category?if_exists}</td>
				<td class="sCell">${a.browserNum?if_exists}</td>
				<td class="sCell">${a.publishUser?if_exists}</td>
				<td class="sCell">${a.publishTime?string('yyyy-MM-dd HH:mm')}</td>
				<td class="sCell">${a.sugestTime?string('yyyy-MM-dd')}</td>
				<!--<td class="sCell">
					<#assign lid=action.lid(areaId,a.position)>
					<#assign rid=action.rid(areaId,a.position)>
					<#if lid!=-333>
						<a class="sliverbutton"  onclick="area.pos('${a.id}','${lid}');"><span>向上</span></a>
						<a class="sliverbutton"  onclick="area.top('${a.id}','${areaId}');"><span>置顶</span></a>
					</#if>
					<#if rid!=-111>
						<a class="sliverbutton"  onclick="area.pos('${a.id}','${rid}');"><span>向下</span></a>
					</#if>
				</td>-->
			</tr>
		</#list>
		</#if>
		</table>
		</div>
		<@s.component id="page" template="components/page.ftl"> 
							<@s.param name="page" value="%{mores}" />
							<@s.param name="pageRange" value="%{pageRange}" />
							<@s.param name="param" value="%{action.param}" />
					</@s.component>
	</div>
	
	<#include "/pages/include/top.ftl" />
	
	
	<#include "/pages/include/bottom.ftl" />
	
</div>

</body>

</html>
